import express from "./express/index.js";
// import express from "express";
import path from "path";
import ejs from "ejs";
const app = express();

app.use(express.json());
app.use(express.urlencoded());
app.post("/login", function (req, res) {
  console.log(req.body);
  res.send(req.body);
});
app.listen(3000);

// session  -> express-session  / koa-session
// cookie -> cookie-parser / koa自带的
// static -> express.static / koa-static
// views -> express.engine / koa-views
// multer -> multer / koa-multer
// cors ->  cors / koa-cors
// roter -> 自带 / koa-router
// ...
